class Cat:
    def eat(self):
        print("eat")

    def drink(self):
        print("dink")


# 创建对象
tom = Cat()
tom.drink()
tom.eat()

print("tom:", tom)
iddr = id(tom)
# 十进制
print("id tom %d" % iddr)
# 十六进制
print("id tom %x" % iddr)
